package com.imooc.repository;

import com.imooc.mo.ReportMO;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @author liansen
 * @create 05-29-2:28
 * spring-boot-starter-data-mongo封装了mongojpa,这里直接继承MongoRepository<T, ID>即可
 * T: 就是操作的对象
 * ID: 对象的主键类型
 */
@Repository
public interface ReportJobRepository extends MongoRepository<ReportMO, String> {

    ReportMO findByReportUserIdAndJobId(String reportUserId, String jobId);

}
